﻿package mortal.game.view.guild.hintIcon
{
    import Message.Game.*;
    import com.mui.controls.*;
    import extend.language.*;
    import flash.events.*;
    import mortal.game.cache.*;
    import mortal.game.cache.guild.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class GuildPositionModifyIcon extends HintBaseIcon
    {

        public function GuildPositionModifyIcon()
        {
            super(ImagesConst.guild_renIcon);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            var _loc_2:* = Cache.instance.guild.selfGuildInfo;
            var _loc_3:* = _loc_2.positionModifyVec.shift();
            if (_loc_2.positionModifyVec.length == 0)
            {
                this.hide();
            }
            var _loc_4:* = Language.getStringByParam(71128, _loc_3.operName, _loc_3.guildName, GameDefConfig.instance.getGuildPositonName(_loc_3.positon.value()));
            Alert.show(_loc_4, null, Alert.OK);
            return;
        }// end function

        override public function show(param1:int = 0, param2:int = 0) : void
        {
            super.show(param1, param2);
            setLabel(0);
            return;
        }// end function

    }
}
